package nbp.currency.app;

import javax.swing.JFrame;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;

import nbp.currency.logic.Controller;

public class NBPCurrencyMain {

	public static void main(String[] args) throws ClassNotFoundException, InstantiationException, IllegalAccessException, UnsupportedLookAndFeelException {

		UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
		JFrame frame = new JFrame("Kursy walut");
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		Controller controller = new Controller();
		frame.add(controller.getPanel());
		frame.pack();
		frame.setVisible(true);
	}

}
